﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace AdminApiTemplate.Infrastructures
{
    /// <summary>
    /// 数据库表基类
    /// </summary>
    public class TableModelBase
    {
        /// <summary>
        /// Id
        /// </summary>
        [Key]
        [Required(ErrorMessage = "必填")]
        [Description("Id")]
        public int? Id { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Description("创建时间")]
        public DateTime? CreateTime { get; set; }
    }
}
